// 验证码的获取
var countdown = 60;

function settime(val) {
    if (countdown == 0) {
        val.style.color = "rgba(70, 119, 215, 1)";
        val.removeAttribute("disabled");
        val.value = "发送验证码";
        countdown = 60;
    } else {
        val.setAttribute("disabled", true);
        val.style.color = "#bdbdbd";
        val.value = "重新发送(" + countdown + ")";
        countdown--;
        setTimeout(function() {
            settime(val)
        }, 1000)
    }

}